package tiandang.core.dao;

import org.apache.ibatis.annotations.Param;
import tiandang.core.model.PromoProduct;

import java.util.List;

public interface PromoProductMapper {
  int insertSelective(PromoProduct record);

  List<PromoProduct> getListByPromoId(Integer promoId);

  void deleteListByPromoId(Integer promoId);

  List<PromoProduct> getListByPromoIdList(@Param("promoIdList") List<Integer> promoIdList);

  void updateSequenceById(@Param("id") Integer id, @Param("sequence") Integer sequence);
}